package main

import (
	"ULCrawler/browser"
	"ULCrawler/spider"
	"time"
	"ULCrawler/conf"
	
)
var AcountArr = conf.Conf.DouYinAcount

func main() {
	defer browser.Stop()

	o := spider.NewDouYinDriver()
	for _,v := range AcountArr{
		o.AddAccount(v.UserName,v.PassWord, v.UserName2,v.PassWord2,v.Company,v.DouYinCookie)
	}
	//o.AddAccount("13330643839", "")
	//o.AddAccount("13880663491","", "570061839@qq.com","1.ilove")
	o.Run()
	

	for {
		time.Sleep(24 * time.Hour)
	}
}
